package com.zzw.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
/**
* @Athor:xiezhongjiang
* @Description:权限控制
* @Date:2017/10/26 12:24
* @Since:1.0.0
*/
public @interface Permission {
	/**
	* @Athor:xiezhongjiang
	* @Description:是否需要登录，缺省为需要
	* @Date:2017/10/26 12:24
	* @Param:
	* @return
	*/
	boolean loginReqired() default true;
	
	/**
	 * 需要的权限，缺省值为不需要任何权限
	 * @return
	 */
	//Privilege privilege() default Privilege.ANY;
}